package org.dreamwork.jasmine2.web.controls;

import org.dreamwork.jasmine2.annotation.ParseChildren;
import org.dreamwork.jasmine2.annotation.TemplateSupport;
import org.dreamwork.jasmine2.annotation.WebControlTemplate;
import org.dreamwork.jasmine2.template.ITemplate;
import org.dreamwork.jasmine2.template.ITemplateControl;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 11-9-1
 * Time: 上午11:45
 */
@TemplateSupport
@ParseChildren (false)
@WebControlTemplate (RepeaterTemplate.class)
public class Repeater2 extends WebContainer implements ITemplateControl {
    private RepeaterTemplate template;
    public void setTemplate (ITemplate template) {
        this.template = (RepeaterTemplate) template;
    }

    public void applyTemplate () {
        template.init ();
    }
}